package com.atguigu.tingshu.order.mapper;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

     /**
      * @description: 查询专辑订单是否下单但未支付
      * @author: baosi
      * @date: 2025/3/26 19:51
      */
    Long getItemTypeAlbumAndVipIsPadding(@Param("userId") Long userId,
                                         @Param("itemType") String itemType,
                                         @Param("itemId") Long itemId);

     /**
      * @description: 查询声音订单是否下单但未支付
      * @author: baosi
      * @date: 2025/3/26 20:33
      */
    List<Long> getItemTypeTrackIsPadding(@Param("userId") Long userId,
                                         @Param("itemType") String itemType);
}
